﻿using SeriesManager.Enum;
using System;
using Windows.ApplicationModel.Resources;
using Windows.UI.Xaml;
using WinRTFramework.Interfaces.Contracts.Settings.ViewModel;

namespace SeriesManager.ViewModel
{
    public class SettingsViewModel : ViewModelBase, ISupportPermanentSettingsFlyout
    {
        public Array Languages
        {
            get { return System.Enum.GetValues(typeof(Languages)); }
        }

        public Languages Language
        {
            get
            {
                return AppX.Instance.Language;
            }
            set
            {
                AppX.Instance.Language = value;
            }
        }

        public ElementTheme Theme
        {
            get
            {
                return AppX.Instance.Theme;
            }
            set
            {
                AppX.Instance.Theme = value;
            }
        }

        public int DisplayOrder
        {
            get { return 0; }
        }

        public string Label
        {
            get { return new ResourceLoader().GetString("Settings"); }
        }


        public WinRTFramework.Common.DelegateCommand Hide
        {
            set;
            private get;
        }
    }
}